package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.Tag;
import cn.wolfcode.trip.base.mapper.TagMapper;
import cn.wolfcode.trip.base.service.ITagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TagServiceImpl implements ITagService{
    @Autowired
    private TagMapper tagMapper;

    @Override
    public void saveOrUpdate(Tag tag) {
    }

    @Override
    public Tag getTagById(Long id) {
        return tagMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Tag> getTagByStrategyId(Long strategyId) {
        return tagMapper.selectTagsByStrategyId(strategyId);
    }

}
